/*******************************************
 * Copyright 2007 Aphrodite Framework for javaME .
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * Email : owner@aphroditeme.dev.java.net
 * Contributors:
 *     Kent Elton - initial API and implementation
 *******************************************/

package com.aphrodite.ui.schema;

import javax.microedition.lcdui.Image;

/**
 * <p>
 * Schema for toolbar widget
 * </p>
 * 
 * @author kentelt
 * 
 */
public final class ToolbarButton {
	/**
	 * Button icon
	 */
	public Image icon;
	/**
	 * Flag to set if the tool is enabled
	 */
	public boolean isEnabled;
	/**
	 * Tooltip text
	 */
	public String toolTip;

	/**
	 * If <code>toolTip</code> and <code>icon </code> is null the button is
	 * rendered as a separator.
	 * 
	 * @param toolTip
	 *            if null no tooltip is displayed
	 * @param icon
	 *            if null no icon is displayed
	 */
	public ToolbarButton(String toolTip, Image icon) {
		this.toolTip = toolTip;
		this.icon = icon;
	}

}
